<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>成功</div>
<script>
    const queryParam = location.search.replace(/^\?/, '').split('&')[0];
    parent.postMessage({code: queryParam.split('=')[1], eventType: 'BAIDU_LOGIN_CALLBACK'}, '*')
</script>
</body>
</html>